package com.weaver.drools.business.execution.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weaver.drools.business.execution.service.IEAqInsInpection124Service;
import com.weaver.drools.common.dao.EAqInsInpection124Dao;
import com.weaver.drools.common.entity.EAqInsInpection124;
@Service
public class EAqInsInpection124ServiceImpl implements IEAqInsInpection124Service {

	@Autowired
	private EAqInsInpection124Dao inpection124Dao;
	@Override
	public EAqInsInpection124 findById(Long inpectionid) {
		// TODO Auto-generated method stub
		return inpection124Dao.findEAqInsInpection124ByInpectionid(inpectionid);
	}

	@Override
	public void saveEAqInsInpection124(EAqInsInpection124 inpection124) {
		inpection124Dao.saveOrUpdate(inpection124);

	}

	@Override
	public void updateEAqInsInpection124(EAqInsInpection124 inpection124) {
		inpection124Dao.saveOrUpdate(inpection124);
	}

	@Override
	public void deleteById(Long inpectionid) {
		inpection124Dao.deleteById(inpectionid);
	}

}
